package com.cy.pj.sys.dao;

import com.cy.pj.sys.pojo.SysNotice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.sql.SQLException;
import java.util.List;


@Mapper
public interface SysNoticeDao {
    List<SysNotice> selectNotice(SysNotice notice) ;

    int deleteById(Long... id);

    @Select("select * from sys_notice where id=#{id}")
    SysNotice selectById(Long id);

    int insertNotice(SysNotice noti0ce);

    int updateNotice(SysNotice notice);

}
